package com.winphone.zhgd.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * <p>
 * 
 * </p>
 *
 * @author zhou
 * @since 2017-08-30
 */

@TableName("tb_ls_worker")
public class TbLsWorker extends Model<TbLsWorker> {

    private static final long serialVersionUID = 1L;

    /**
     * 劳务人员id
     */
	@TableId
	private Long workid;
    /**
     * 姓名
     */
	@NotBlank(message = "真实姓名不能为空")
	private String truename;
    /**
     * 性别
     */
	private String sex;
    /**
     * 手机号
     */
	private String phone;
    /**
     * 年龄
     */
	@Range(min = 1, max = 9, message = "年龄只能从0-200")
	private Integer age;
    /**
     * 所属队伍id
     */
	@TableField("team_id")
	private Integer teamId;
    /**
     * 工种
     */
	@TableField("kind_work")
	private String kindWork;
    /**
     * 技工等级
     */
	@TableField("technician_level")
	private String technicianLevel;
    /**
     * 岗位类别
     */
	@TableField("post_id")
	private Integer postId;
	private Date createtime;
	private Date updatetime;

	public Long getWorkid() {
		return workid;
	}

	public void setWorkid(Long workid) {
		this.workid = workid;
	}


	public String getTruename() {
		return truename;
	}

	public void setTruename(String truename) {
		this.truename = truename;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Integer getTeamId() {
		return teamId;
	}

	public void setTeamId(Integer teamId) {
		this.teamId = teamId;
	}

	public String getKindWork() {
		return kindWork;
	}

	public void setKindWork(String kindWork) {
		this.kindWork = kindWork;
	}

	public String getTechnicianLevel() {
		return technicianLevel;
	}

	public void setTechnicianLevel(String technicianLevel) {
		this.technicianLevel = technicianLevel;
	}

	public Integer getPostId() {
		return postId;
	}

	public void setPostId(Integer postId) {
		this.postId = postId;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	@Override
	protected Serializable pkVal() {
		return this.workid;
	}

}
